﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ninject;
using Legazpi.Payroll.Services.Interfaces;

namespace Legazpi.Payroll.Web.Admin
{
    public partial class Users : System.Web.UI.Page
    {
        [Inject]
        public IUserService _usersService { get; set; }

        #region Implementations
        void BindGrid()
        {
            repeater.DataSource = _usersService.GetAll();
            repeater.DataBind();

        }

        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
                BindGrid();
        }
    }
}